import os
import time

import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'application.settings')
django.setup()

from apps.system.models import Notification
from django.db import connection, connections

print(Notification.objects.all())
print(connections["default"])
time.sleep(10)
print(Notification.objects.all())
print(connections["default"])

